package pattern.singleton;

/**
 * Created by boot on 9/8/15.
 */
public class SingletonWithoutLock {
    private static SingletonWithoutLock instance;

    private SingletonWithoutLock() {

    }

    public static SingletonWithoutLock getInstance() {
        if (instance == null)
            instance = new SingletonWithoutLock();
        return instance;
    }

}
